<form class="form-inline" method="get">

    <div class="form-group col-xs-2">
        <div class="col-xs-12">
            <input class="form-control" name="user_condition" value="{$user_condition}"
                   placeholder="会员手机|会员昵称|会员ID">
        </div>
    </div>
    <div class="form-group col-xs-2">
        <div class="col-xs-12">
            <input class="form-control" name="g_condition" value="{$g_condition}"
                   placeholder="商品ID|商品名称">
        </div>
    </div>
    <div class="form-group col-xs-2">
        <button type="submit" class="btn btn-success">
            搜索
        </button>
    </div>
</form>

<hr>

<table class="table table-striped">
    <thead>
    <tr>
        <td>ID</td>
        <td>评价者</td>
        <td>商品</td>
        <td>评论星级</td>
        <td>评论内容</td>
        <td>评论时间</td>
        <td>操作</td>
    </tr>
    </thead>
    <tbody>
    {volist name="list" id="item"}
    <tr>
        <td>{$item.id}</td>
        <td>
            <label class="label label-danger">{$item.uname}【ID：{$item.uid}】</label><br/>
            <label class="label label-success">{$item.umobile}</label>
        </td>
        <td>
            <p>缩略图：<img style="width: 3rem" src="{$item.img_url}"></p>
            <p>商品名：{$item.gtitle}</p>
        </td>
        <td style="color: #E84816;font-weight: bold;">{$item.star} <i class="fa fa-star"></i></td>
        <td style="width: 350px;word-break: break-all;">{$item.content}</td>
        <td>{$item.comment_time|show_datetime}</td>
        <td>
            <a class="btn btn-danger" href="javascript:void(0)" data-toggle="confirm"
               data-title="删除评论"
               data-content="确认删除？请谨慎操作！"
               data-url="{:url('remove_comment',array('id'=>$item['id']))}">
                删除
            </a>
        </td>

    </tr>
    {/volist}
    </tbody>
</table>

<div class="row">
    <div class="col-xs-12" style="text-align: right;">
        {$list->render()}
    </div>
</div>
